package com.internetCafes.spms.common.utils.entity.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页请求参数
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageItemDTO<T> {

    @ApiModelProperty(value = "当前页数", required = true)
    private Integer pageNum = 1;

    @ApiModelProperty(value = "单页条数", required = true)
    private Integer pageSize = 2;

    @ApiModelProperty(value = "需要排序字段", required = true)
    private String orderBy;

    @ApiModelProperty(value = "asc正序 desc倒序", required = true)
    private String inOrder;

    @ApiModelProperty(value = "检索条件")
    private T conditions;
}